﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class SM_panel : System.Web.UI.MasterPage
{
    List<string> proid = new List<string>();
    List<string> reorderproid = new List<string>();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["user"] == null)
        {
            Response.Redirect("index.aspx");
        }


        if (Session["user"] == null)
        {
            Response.Redirect("index.aspx");
        }


        Label2.Text = Session["current"].ToString();




        if (Session["user"] != null)
        {
            Label1.Text = Session["username"].ToString();

            if (!this.IsPostBack)
            {
                //proid = Bestlife.ERP.BusinessRules.B_adminstockcheck.stockcheck();
                reorderproid = Bestlife.ERP.BusinessRules.B_adminstockcheck.reorder();
                foreach (string ListItem in reorderproid)
                {
                    //ASPxMemo1.Visible = true;
                    ASPxMemo1.Text += " " + ListItem + "  set reorder\n";



                    //    // ASPxMemo2.Text=" "+ proname +" is Out of Stock";

                }
            }
        }

        else
        {
            Label1.Text = "Guest";
        }
    }
}

